﻿
using BCCommon;
using BCCommon.Enums;
using BCData.OA.WorkflowTemplate.WorkflowTemplateFormCustomDatabaseTableColumn;
using BCDto.OA.WorkflowTemplate.WorkflowTemplateFormCustomDatabaseTableColumn;
using BCEntity.OA.WorkflowTemplate.WorkflowTemplateFormCustomDatabaseTableColumn;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.OA.WorkflowTemplate.WorkflowTemplateFormCustomDatabaseTableColumn
{
	/// <summary>
	/// 工作流模板表单自定义数据库表集合列
	/// </summary>
	public interface IWorkflowTemplateFormCustomDatabaseTableColumnService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="workflowTemplateFormCustomDatabaseTableColumnId">工作流模板表单自定义数据库表集合列Id</param>
		bool Exists(long workflowTemplateFormCustomDatabaseTableColumnId);
		/// <summary>
		/// 添加工作流模板表单自定义数据库表集合列
		/// </summary>
		/// <param name="requestDto">工作流模板表单自定义数据库表集合列信息</param>
		WorkflowTemplateFormCustomDatabaseTableColumnDto Add(WorkflowTemplateFormCustomDatabaseTableColumnRequestDto requestDto);
		/// <summary>
		/// 更新工作流模板表单自定义数据库表集合列
		/// </summary>
		/// <param name="putDto">工作流模板表单自定义数据库表集合列信息</param>
		WorkflowTemplateFormCustomDatabaseTableColumnDto Update(WorkflowTemplateFormCustomDatabaseTableColumnPutDto putDto);
		/// <summary>
		/// 删除工作流模板表单自定义数据库表集合列
		/// </summary>
		/// <param name="workflowTemplateFormCustomDatabaseTableColumnId">工作流模板表单自定义数据库表集合列Id</param>
		bool Delete(long workflowTemplateFormCustomDatabaseTableColumnId);
		/// <summary>
		/// 获取工作流模板表单自定义数据库表集合列
		/// </summary>
		/// <param name="workflowTemplateFormCustomDatabaseTableColumnId">工作流模板表单自定义数据库表集合列Id</param>
		WorkflowTemplateFormCustomDatabaseTableColumnDto Get(long workflowTemplateFormCustomDatabaseTableColumnId);
		/// <summary>
		/// 获取工作流模板表单自定义数据库表集合列列表
		/// <paramref name="formConfigCode">表单配置Code</paramref>
		/// </summary>
		IEnumerable<WorkflowTemplateFormCustomDatabaseTableColumnDto> GetList(string formConfigCode);
		/// <summary>
		/// 获取工作流模板表单自定义数据库表集合列分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">工作流模板表单自定义数据库表集合列每页数据条数</param>
		PageableList<WorkflowTemplateFormCustomDatabaseTableColumnDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}